package com.ayuan.blog.common.wechat.common;

/**
 * @author HaydenWang
 *
 */
public class WechatException extends RuntimeException {
	private static final long serialVersionUID = 4154366332603046104L;
	private WechatReturnCode errorCode;
	private String errCode;
	
	public WechatException(WechatReturnCode errorCode) {
		super();
		this.errorCode = errorCode;
	}
	
	public WechatException(WechatReturnCode errorCode, String msg) {
		super(msg);
		this.errorCode = errorCode;
	}
	
	public WechatException(String errCode, String msg) {
		super(msg);
		this.errCode = errCode;
	}

	public WechatException(WechatReturnCode errorCode, Throwable cause) {
		super(cause);
		this.errorCode = errorCode;
	}

	public WechatException(WechatReturnCode errorCode, String message, Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
	}

	public WechatReturnCode getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(WechatReturnCode errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

}
